git submodule init
git submodule update

cur_dir=$(pwd)
export IDF_PATH=$cur_dir/os/esp-idf

cd $IDF_PATH

./install.sh

. ./export.sh
. ./add_path.sh


git am $cur_dir/patch/*

cd -

echo
echo
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "add env path is successed, To enjoy the esp gateway"
echo "+++++++++++++++++++++++++++++++++++++++++++++++++++"
echo
